﻿using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Ewk.Math.Algebra.UnitTests.MatrixTests.DoubleTests
{
    [TestClass]
    public class ToStringTests : DoubleTestBase
    {
        [TestMethod]
        public void ToString_produces_a_string_that_contains_all_elements_of_the_matrix()
        {
            var matrix1 = Matrix;

            const string expectedString = "1\t2\t3\t\n2\t4\t6\t\n3\t6\t9\t\n";
            var stringRepresentation = matrix1.ToString();

            Assert.AreEqual(expectedString, stringRepresentation);
        }
    }
}